package Com.amit.corejava;

public class Lab27 {
	
	int id;
	String name;
	String address;

	public Lab27(int id,String name)
	{
		this.id=id;
		this.name=name;
	}
	
	public Lab27(int id,String name,String address)
	{
		this(id, name);
		this.address=address;
	}
	
	public void display()
	{
		System.out.println(id+" "+name+" "+address);
	}
	
	public static void main(String[] args) {
		
		Lab27 l1=new Lab27(12,"amit");
		Lab27 l2=new Lab27(12,"anil","delhi");
		
		l1.display();
		l2.display();
	
	}

}
